/*
 * @Author: your name
 * @Date: 2021-09-27 21:05:11
 * @LastEditTime: 2021-10-14 15:52:53
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_test\src\mixin.js
 */
/* 分别暴露 */
export const mixin = {
  methods: {
    showName() {
      alert(this.name);
    },
  },
  //只要组件挂载完以后，执行此命令
  mounted() {
    console.log("你好啊！");
  },
};

export const mixin2 = {
  data() {
    return {
      x: 100,
      y: 200,
    };
  },
};
